<?php 
	$count = count($this->data);
	$i = 0;
?>
[
<?php 
	foreach($this->data as $item)
	{
	    if($i == $count-1)
	   	 echo '{ "value":"'.$item['name'].'"}';
	    else
	    {
	        $i++;
	        echo '{ "value":"'.$item['name'].'"},';
	    }
	}
?>
]